package org.firebug.spring.boot.hikari.repository.dao;

import org.firebug.spring.boot.hikari.repository.po.UserPo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface UserDao extends JpaRepository<UserPo, Long> {
    @Query(value = "select * from t_user where id=:id", nativeQuery = true)
    UserPo queryById(@Param("id") Long id);
}